package com.bdqn.t350.dao;

import com.bdqn.t350.pojo.SysRole;
import com.bdqn.t350.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    public int count();

    public List<User> getUserListByPojo(@Param("userCode") String userCode, @Param("userName1") String userName);

    public List<User> getUserListByPojoMap(Map map);

    public List<User> getUserListByUserCode(@Param("userCode") String userCode);

    public List<User> selectUserAndAddress(@Param("userCode") String userCode);

    public int add(@Param("user") User user, @Param("role") SysRole sysRole);

}
